package com.tdd;

import static org.junit.Assert.assertEquals;

import java.math.BigDecimal;

import org.junit.Before;
import org.junit.Test;

public class PrimeFactorsTest {
	HpStack stack;
	private Integer value;

	@Before
	public void init() {
		stack = new HpStack();
	}

	@Test
	public void primeFactorsOf2Are2() {
		givenAnOperandOf(2);
		whenCalculatingItsPrimeFactors();
		thenTheResultShouldInclude(2);
	}

	private void thenTheResultShouldInclude(Integer expected) {
		assertEquals(expected, stack.pop());
	}

	private void whenCalculatingItsPrimeFactors() {
	}

	private void givenAnOperandOf(Integer value) {
		stack.push(new BigDecimal(value));
	}
}
